﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InHD.model;
using InHD.commands;
using System.Windows.Input;

namespace InHD.viewmodels
{
    class AccountsListViewModel:WorkspaceViewModel
    {
        #region Value Property
        private List<Account> _accountRowCollection;
        private int _rowIndex = -1;
        #endregion

        #region Constructor
        public AccountsListViewModel(List<Account> listAccount)
        {
            _accountRowCollection = listAccount;
        }
        #endregion

        #region Presentation Property
        public List<Account> AccountRowCollection
        {
            get
            {
                return _accountRowCollection;
            }
            set
            {
                if (_accountRowCollection != value)
                {
                    _accountRowCollection = value;
                    OnPropertyChanged("AccountRowCollection");
                }
            }
        }

        public int RowIndex
        {
            get
            {
                return this._rowIndex;
            }
            set
            {
                this._rowIndex = value;
                OnPropertyChanged("RowIndex");
            }
        }
        #endregion
    }
}
